package com.longjianghuasheng.logistics.weight.recyclerview

import android.content.Context
import android.util.AttributeSet
import com.yanzhenjie.recyclerview.SwipeRecyclerView

class GradationRecyclerView(context: Context?, attrs: AttributeSet?, defStyle: Int) :
    SwipeRecyclerView(context, attrs, defStyle) {
    var scrollViewListener: (GradationRecyclerView, Int, Int, Int, Int) -> Unit =
        { _, _, _, _, _ ->


        }


    constructor(context: Context?) : this(context, null)

    constructor(context: Context?, attrs: AttributeSet?) : this(context, attrs, 0)

    override fun onScrollChanged(x: Int, y: Int, oldx: Int, oldy: Int) {
        super.onScrollChanged(x, y, oldx, oldy)
        scrollViewListener.invoke(this,x,y,oldx,oldy)

    }
}